package com.qf.dao;

import com.qf.borrower.Borrower;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author H
 * @create 2020-11-03 11:12
 * @strive To be whoever you want to be.
 * @Description:
 */
public interface UserRespository extends JpaRepository<Borrower, Integer> {

    Borrower findByUsernameAndPassword(String username, String password);

    Borrower findByUsername(String username);
}
